package com.lizhenhua.api.service.impl;


import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SendToMq {
    @Autowired
    private AmqpTemplate amqpTemplate;

    public void sendMessage(String orderId) {
        amqpTemplate.convertAndSend("ex7", "key1", orderId);

    }


}
